package com.imooc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloController4 {
    @Autowired
    private GirlProperties girlProperties;
    @RequestMapping(value = "/say",method = RequestMethod.GET)
    public String say4(){
        return girlProperties.getCupSize();
    }
}
//如果是get方式，浏览器就可以访问
// 如果是post方式，只能在postman里面访问
//如果2个都不写，那在postman里面都可以访问，但是不安全